package com.fromfuture.xuhuidoc.android.base;

import android.app.Application;
import android.content.Context;

import com.fromfuture.xuhuidoc.android.commonresouce.MyUrl;
import com.pgyersdk.crash.PgyCrashManager;

import app.auto.runner.base.RRes;
import app.auto.runner.base.SPrefUtil;

/**
 * Created by hp on 2017/8/16.
 */

public class MyApplication extends Application {
    private static Context mycontext;

    public void onCreate(){
        super.onCreate();

        MyUrl.init(getBaseContext());
        PgyCrashManager.register(this);
        MyApplication.mycontext = getApplicationContext();
        RRes.initR(this);
    }

    public static Context getAppContext() {
        return MyApplication.mycontext;
    }

}
